#pragma once
#include "stdafx.h"
#include <string>
#include "ProgBar.h"
using namespace sf;

class ChickenDefGame;

class GUIOverlay
{
	String m_heatText;
	String m_hatchText;
	String m_switchText;
	String m_hatchPlayerText;
	String m_elapsedText;
	AniSprite* m_changeSprite;
	Sprite*   m_puffSprite;

	ProgBar *temp_bar;
	ProgBar *change_bar;
	float timeToShowChange;
	float timeToShowPuff;


	int wichMustHatch;


	Sound changeSound;
	Sound puffSound;

public:

	void SetHatchKeys(std::string text);
	void SetHeat(std::string text);
	void SetTimeToSwitch(float time);
	void SetTotalTimeToSwitch(float time);
	void SetPlayerHatching(int p);
	void SetHeatMaxMin(float max,float min);
	void SetHeat(float value);
	void ShowChangeText(float time);
	void ShowPuffSprite(float time);
	void SetElapsedTime(float value);

	static GUIOverlay* Instance();
	void Update(float dt);
	void Draw(RenderWindow *wnd);
	GUIOverlay(void);
	~GUIOverlay(void);
};

